﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyLichChieuPhim.aspx.cs" Inherits="LotteCinema.Admin.QuanLyLichChieuPhim" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style27
        {
            width: 417px;
            margin-left: 80px;
            text-align: right;
        }
        .style29
        {
            width: 302px;
        }
        .style30
        {
            margin-left: 67px;
        }
        .style31
        {
            width: 405px;
        }
        .style32
        {
            text-align: left;
            width: 405px;
        }
        .style33
        {
            margin-left: 49px;
        }
        .style34
        {
            width: 417px;
            text-align: right;
        }
        .style35
        {
            margin-left: 51px;
        }
        .style36
        {
            margin-left: 55px;
        }
        .style37
        {
            margin-left: 58px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div class="title"  style="font-size:14pt;">QUẢN LÝ LỊCH CHIẾU PHIM</div>
    <table style="width: 100%;">
        <tr>
            <td colspan="3" class="style26">
                <asp:Label ID="lblthongbao" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width: 100%;">
        <tr>
            <td class="style34">
                &nbsp;</td>
            <td class="style29" align="right">
                <asp:Label ID="Label2" runat="server" Text="Mã Lịch Chiếu Phim:"></asp:Label>
                <asp:DropDownList ID="ddrMaLCP" runat="server" AutoPostBack="True" 
                    CssClass="style35" Height="18px" 
                    onselectedindexchanged="ddrMaLCP_SelectedIndexChanged" Width="128px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style34">
                &nbsp;</td>
            <td class="style29"align="right">
                <asp:Label ID="Label3" runat="server" Text="Mã Suất Chiếu:"></asp:Label>
                <asp:DropDownList ID="ddlMaSC" runat="server" CssClass="style36" Height="17px" 
                    Width="123px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style34">
                &nbsp;</td>
            <td class="style29"align="right">
                <asp:Label ID="Label4" runat="server" Text="Mã Phòng:"></asp:Label>
                <asp:DropDownList ID="ddlMaPhong" runat="server" CssClass="style36" 
                    Height="16px" Width="124px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style29"align="right">
                <asp:Label ID="Label5" runat="server" Text="Thời Gian:"></asp:Label>
                <asp:TextBox ID="txtThoiGian" runat="server" CssClass="style37" Width="113px">
                </asp:TextBox>
                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtThoiGian" Enabled="true" Format="dd/MM/yyyy" >
                </asp:CalendarExtender>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style31">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style31">
                <asp:GridView ID="grLCP" runat="server" CssClass="style30" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="MALCP,MASC" 
                    onpageindexchanging="grLCP_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="MALCP" HeaderText="MALCP" ReadOnly="True" 
                            SortExpression="MALCP" />
                        <asp:BoundField DataField="MASC" HeaderText="MASC" ReadOnly="True" 
                            SortExpression="MASC" />
                        <asp:BoundField DataField="MAPHONG" HeaderText="MAPHONG" 
                            SortExpression="MAPHONG" />
                        <asp:BoundField DataField="THOIGIAN" HeaderText="THOIGIAN" 
                            SortExpression="THOIGIAN" />
                        <asp:CommandField SelectText="Chọn" ShowSelectButton="True" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [LICHCHIEUPHIM]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style31">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style32">
                <asp:ImageButton ID="imThem" runat="server" CssClass="style33" Height="52px" 
                    ImageUrl="~/Images/THEM.png" onclick="imThem_Click" Width="110px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" onclick="imXoa_Click" Width="110px" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" onclick="imSua_Click" Width="110px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
